<!--%import("filter/compile_keywords.xml")-->
<!--%import("js/manual_admin.js")-->
<!--#include("header.html")-->

<form action="./" method="post" onsubmit="return procFilter(this, compile_keywords)" >
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
<input type="hidden" name="help_name" value="{$module_info->help_name}" />


    <h4 class="xeAdmin">{$lang->confirm_compile_keywords}</h4>
    <table cellspacing="0" class="rowTable">
    <tr>
        <th scope="row"><div>{$lang->module_name}</div></th>
        <td class="wide">{$module_info->mid}</td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->module}</div></th>
        <td>{$module_info->module}</td>
    </tr>

    <tr>
        <th scope="row"><div>{$lang->manual_set_identifier}</div></th>
        <td>{$module_info->help_name}</td>
    </tr>
    
    <tr>
        <th colspan="2" class="button">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_compile_keywords}" /></span>
            <a href="{getUrl('act','dispXedocsAdminView')}" class="button"><span>{$lang->cmd_back}</span></a>
        </th>
    </tr>
    </table>


</form>


<hr />


<div id="keyword_commands">

<a href="{getUrl('act','dispXedocsAdminAddKeyword','module_srl',$module_srl)}" class="button blue"><span>{$lang->cmd_create_keword}</span></a>
&nbsp
<a href="{getUrl('act','dispXedocsAdminClearKeywordList','module_srl',$module_srl)}" class="button blue"><span>{$lang->cmd_clear_kewords}</span></a>
&nbsp&nbsp

<form action="./" method="get">

<input type="hidden" name="module" value="admin" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
<input type="hidden" name="act" value="dispXedocsAdminCompileKeywordList" />

{$lang->filter_keywords} <input type="text" value="{$filter_keyword}" name="filter_keyword" />

<span class="button black strong"><input type="submit" value="{$lang->cmd_filter_kewords}" /></span>
<form>

</div>



<!--@if(0 == $total_keywords)-->
	{$lang->no_keywords}
<!--@else-->

<div style='float:right; position:relative; top:-20px;'>{$lang->total_keywords} &nbsp {$total_keywords} &nbsp &nbsp &nbsp 
<a href="{getUrl('act','dispXedocsAdminReviewKeywords','module_srl',$module_srl)}" class="button blue"><span>Review Keyword Links</span></a>
</div>


<table cellspacing="0" class="rowTable">
	<tr>
	
	<th scope="col">
	<div>{$lang->keyword}</div>
	</th>
	
	<th scope="col">
	<div>document_srl</div>
	</th>

	<th scope="col">
	<div>Url</div>
	</th>

	<th scope="col">
	<div>Edit</div>
	</th>

	<th scope="col">
	<div>Delete</div>
	</th>

	</tr>


	<!--@foreach($keyword_list as $k)-->
		
		<tr>
			<td>
			{$k->title}
			</td>
	
			<td>
			{$k->target_document_srl}
			</td>
	
			<td>
			
			<a href="{getSiteUrl( 'mid', $mid,  'module_srl',$module_srl,'document_srl', $k->target_document_srl, 'act', 'dispXedocsTreeIndex')}" onclick="window.open(this.href); return false;">{$k->title} -> {$k->target_title}</a>
			
			</td>
			
			<td>
			<a href="{getUrl('act','dispXedocsAdminEditKeyword','module_srl',$module_srl, 'keyword', $k->title, 'target_document_srl', $k->target_document_srl )}" class="buttonSet buttonSetting"><span>{$lang->cmd_setup}</span></a>
			</td>

			<td><a href="{getUrl('act','dispXedocsAdminDeleteKeyword','module_srl',$module_srl, 'keyword', $k->title)}" class="buttonSet buttonDelete"><span>{$lang->cmd_setup}</span></a>
			
			</td>

			
		</tr>
		
	<!--@end-->
</table>

		<div class="pagination a1">
			<a href="{getUrl('page','','module_srl',$module_srl,'division',$division,'last_division',$last_division,'act','dispXedocsAdminCompileKeywordList')}" class="prevEnd">{$lang->first_page}</a> 
			<!--@while($page_no = $page_navigation->getNextPage())-->
				<!--@if($page == $page_no)-->
					<strong>{$page_no}</strong> 
				<!--@else-->
					<a href="{getUrl('page',$page_no,'module_srl', $module_srl,'division',$division,'last_division',$last_division,'act','dispXedocsAdminCompileKeywordList')}">{$page_no}</a>
				<!--@end-->
			<!--@end-->
			<a href="{getUrl('page',$page_navigation->last_page,'module_srl', $module_srl,'division',$division,'last_division',$last_division,'act','dispXedocsAdminCompileKeywordList')}" class="nextEnd">{$lang->last_page}</a>
		</div>


<!--@end-->

